package com.aggron.concurrency.examples.threadlocal;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author LR2SD
 * @description
 * @date 2018-06-10 17:46
 */
@Controller
@RequestMapping("/threadLocal")
public class ThreadLocalController {

    @RequestMapping("/test/test")
    @ResponseBody
    public Long test(){
        return RequestHolder.get();
    }

}
